/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package view.consola;

import model.dao.PDAParserXML;
import model.domain.bd.BaseDatos;
import model.domain.bd.Tabla;
import model.service.Enaho001Service;

/**
 *
 * @author Rdelacruz
 */
public class TestEnaho {

 
    public static void main(String[] args) {
        try {
           
            System.out.println("INICIO");
            Enaho001Service service = new Enaho001Service();
            //service.guardarFromPDA("C:/temp/product.xml");
            service.guardarFromPDA("C:/temp/6128.xml");
            System.out.println("FIN");
                
            //ConexionBD.testConexion();
            //BaseDatos bd = new BaseDatos();
            //PDAParserXML.parsear(bd, "C:/temp/product.xml");
            //System.out.println(bd);
            //Tabla t = bd.getTabla("Modulo_01B_A");
            //System.out.println(t.scriptInsert());
            //System.out.println("CAMPOS="+t.getCampos());
            
            /*
            String sql = "Select A.Año,A.Mes,A.Periodo,A.Estrato,A.Dpto,A.Prov,A.Dist,A.Zona,A.Dominio,A.TipoSeleccion,A.Odei," +
                 "A.Aerini,A.Aerfin,A.Muestra,B.Manzana,B.NroVivienda,B.TipoVivienda,B.CatVia,B.NombreVia,B.Puerta," +
                 "B.Interior,B.Piso,B.Mz,B.Lote,B.Km,B.NroBlock,B.Codccpp,B.nomccpp,B.Telefono,B.EsReemplazo,B.NroReemplazo," +
                 "B.Apertura,B.NroHogares,C.Nombre_Jefe,C.Apellido_Jefe,C.FecResFin,C.ResFin,C.CodEnc," +
                 "C.CodSupLoc, C.CodCoord, C.CodSupNac, C.Hogarentre, C.p22, C.p23 " +
                 "From Conglomerado A inner join Vivienda B on (A.Conglome = B.Conglome) inner join Hogar C on (B.Conglome = C.Conglome) and (B.Vivienda=C.Vivienda) ";
                 //"Where B.Conglome='" & Con & "' And B.Vivienda='" & Viv & "' And C.Hogar='" & Hog & "'"
            System.out.println(sql);
            */        
        } catch (Exception ex) {
            //Logger.getLogger(TestEnaho.class.getName()).log(Level.SEVERE, null, ex);
            //System.out.println();
            ex.printStackTrace();
        }
    }
    
}
